package prototype.ex1;

public class Level implements Cloneable{

    private String name;

    private String description;

    private Monster[] monsters;

    private Rewards rewards;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Monster[] getMonsters() {
        return monsters;
    }

    public void setMonsters(Monster[] monsters) {
        this.monsters = monsters;
    }

    public Rewards getRewards() {
        return rewards;
    }

    public void setRewards(Rewards rewards) {
        this.rewards = rewards;
    }

    @Override
    protected Level clone() {
        try {
            return (Level) super.clone();
        } catch (CloneNotSupportedException e) {
            System.err.println("不支持克隆");
            return null;
        }
    }
}
